import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/Login.vue'),
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/AddRoomType',
      name: 'AddRoomType',
      component: () => import('../views/RoomType/AddRoomType.vue'),
    },
    {
      path: '/ShowRoomType',
      name: 'ShowRoomType',
      component: () => import('../views/RoomType/ShowRoomType.vue'),
    },
    {
      path: '/AddRoomNumber',
      name: 'AddRoomNumber',
      component: () => import('../views/RoomNumber/AddRoomNumber.vue'),
    },
    {
      path: '/ShowRoomNumber',
      name: 'ShowRoomNumber',
      component: () => import('../views/RoomNumber/ShowRoomNumber.vue'),
    },
    {
      path: '/UpdRoomNumber/:id',
      name: 'UpdRoomNumber',
      component: () => import('../views/RoomNumber/UpdRoomNumber.vue'),
    },
    {
      path: '/AddRoomOrder',
      name: 'AddRoomOrder',
      component: () => import('../views/RoomOrder/AddRoomOrder.vue'),
    },
    {
      path: '/ShowRoomOrder',
      name: 'ShowRoomOrder',
      component: () => import('../views/RoomOrder/ShowRoomOrder.vue'),
    },
    {
      path: '/XiangRoomOrder/:id',
      name: 'XiangRoomOrder',
      component: () => import('../views/RoomOrder/XiangRoomOrder.vue'),
    },
  ],
})

export default router
